package com.shop.cereshop.app.dl.logic.domain;

import com.shop.cereshop.commons.domain.product.CereProductImage;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class CerePlatformUserPoint implements Serializable {
    private Long pointId;

    private Long buyerUserId;

    private Long newsId;

    private Integer points;


    private Short sourceType;

    private String memo;
    private Date time;
    private Long productId;
    private CereShopProduct shopProduct;
    private List<CereProductImage> productImages;

    public List<CereProductImage> getProductImages() {
        return productImages;
    }

    public void setProductImages(List<CereProductImage> productImages) {
        this.productImages = productImages;
    }

    public CereShopProduct getShopProduct() {
        return shopProduct;
    }

    public void setShopProduct(CereShopProduct shopProduct) {
        this.shopProduct = shopProduct;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    private static final long serialVersionUID = 1L;

    public Long getPointId() {
        return pointId;
    }

    public void setPointId(Long pointId) {
        this.pointId = pointId;
    }

    public Long getBuyerUserId() {
        return buyerUserId;
    }

    public void setBuyerUserId(Long buyerUserId) {
        this.buyerUserId = buyerUserId;
    }

    public Long getNewsId() {
        return newsId;
    }

    public void setNewsId(Long newsId) {
        this.newsId = newsId;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Short getSourceType() {
        return sourceType;
    }

    public void setSourceType(Short sourceType) {
        this.sourceType = sourceType;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pointId=").append(pointId);
        sb.append(", buyerUserId=").append(buyerUserId);
        sb.append(", newsId=").append(newsId);
        sb.append(", points=").append(points);
        sb.append(", sourceType=").append(sourceType);
        sb.append(", memo=").append(memo);
        sb.append("]");
        return sb.toString();
    }
}